package com.ruoyi.reviews.service.impl;

import com.ruoyi.reviews.domain.ProductCommentDTO;
import com.ruoyi.reviews.mapper.ProductCommentMapper;
import com.ruoyi.reviews.service.IProductCommentDTOService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductCommentDTOServiceimpl implements IProductCommentDTOService {

    @Autowired
    private ProductCommentMapper productCommentMapper;
    @Override
    public List<ProductCommentDTO> getProductComment(String productId) {
        return productCommentMapper.getProductCommentsByProductId(productId);
    }
}
